﻿<%@ Page Title="Salary Tran Entry" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="EmployeeSalaryTrans-Entry.aspx.cs" Inherits="Employee_EmployeeSalaryTrans_Entry" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxToolKit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>Employee Salary Tran Entry</title>

    <script src="../include/js/form.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContentTop" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="bodyContent" Runat="Server">
<div class="elements_inner_wrapper">
        <div id="contentBody">
            <div class="section">
                <div class="seperator">
                </div>
                <fieldset class="formouter">
                    <table>
                        <tr>
                            <td>
                                <div class="row_curved" id="div5" runat="server">
                                    <asp:Label runat="server" ID="lblTopMessage" Text="" Font-Bold="true" Font-Size="Large"
                                        ForeColor="Red"></asp:Label>
                                    <asp:ValidationSummary ID="vsEmployeeProfile" runat="server" ValidationGroup="EmployeeSalaryTrans"
                                        ShowSummary="True" HeaderText="Please complete all highlighted fields of the form. Thank you."
                                        CssClass="errorSummary" />
                                    <div id="Div1" runat="server" visible="false">
                                        lblUserAccountKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblUserAccountKey" /><br />
                                        lblEmployeeSalaryTransKey:<asp:Label Visible="false" runat="server" Text="-1" ID="lblSalaryTransKey" />
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <table cellpadding="3" cellspacing="3" width="100%">
                        <tr>
                            <td valign="top">
                                <h2>
                                    Salary Entry</h2>
                                <div class="row_curved" id="divFirstName" runat="server">
                                    <label for="<%=ddlEmployee.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Employee" ID="lblFirstName" Width="140px" /></label>
                                    <span class="indicator">
                                        <asp:DropDownList ID="ddlEmployee" runat="server" CssClass="inputBox_large">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvEmployee" ValidationGroup="EmployeeSalaryTrans"
                                            ControlToValidate="ddlEmployee" runat="server" CssClass="validationErrorControl"
                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                    </span>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="div24" runat="server">
                                    <label for="<%=ddlpaymentType.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Payment Type" ID="lblPaymentType" Width="140px" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList ID="ddlpaymentType" runat="server" CssClass="inputBox_large">
                                            </asp:DropDownList>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="div29" runat="server">
                                    <label for="<%=ddlCurrency.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Currency" ID="Label29" Width="140px" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList ID="ddlCurrency" runat="server" CssClass="inputBox_medium">
                                            </asp:DropDownList>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="div8" runat="server">
                                    <label for="<%=txtTransDate.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Trans Date" ID="Label13" Width="120px" /></label>
                                    <span class="indicator">
                                        <asp:TextBox ID="txtTransDate" runat="server" MaxLength="12" CssClass="inputBox_medium"></asp:TextBox>
                                        <asp:ImageButton runat="Server" ID="ibtnCalendar2" ImageUrl="~/images/Calendar.gif"
                                            AlternateText="Click to show calendar" ToolTip="Click to select calendar" CausesValidation="false" />
                                        <AjaxToolKit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtTransDate"
                                            Format="dd/MM/yyyy" PopupButtonID="ibtnCalendar2" PopupPosition="TopLeft" />
                                        <asp:CustomValidator ID="cvCalendar" ValidationGroup="EmployeeSalaryTrans" OnServerValidate="SalaryTransDate_ServerSideValidation"
                                            ErrorMessage="Salary Transaction Date sholud valid." ControlToValidate="txtTransDate"
                                            runat="server" CssClass="validationErrorControl" Display="None"></asp:CustomValidator>
                                    </span>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="div25" runat="server">
                                    <label for="<%=txtAmount.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Amount" ID="Label30" Width="140px" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:TextBox CssClass="inputox_small" ID="txtAmount" MaxLength="255" runat="server" />
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ValidationGroup="EmployeeSalaryTrans"
                                                ControlToValidate="txtAmount" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="<br />Invalid Input Data." ValidationExpression="^[1-9]\d*(\.\d+)?$"></asp:RegularExpressionValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="div26" runat="server">
                                    <label for="<%=txtAdditionalAmount.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Additional Amount" ID="Label31" Width="140px" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:TextBox CssClass="inputox_small" ID="txtAdditionalAmount" xtMaxLength="50" runat="server" />
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" ValidationGroup="EmployeeSalaryTrans"
                                                ControlToValidate="txtAdditionalAmount" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="<br />Invalid Input Data." ValidationExpression="^[1-9]\d*(\.\d+)?$"></asp:RegularExpressionValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="div27" runat="server">
                                    <label for="<%=txtOthersAmount.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Others Amount" ID="Label32" Width="140px" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:TextBox CssClass="inputox_medium" ID="txtOthersAmount" MaxLength="50" runat="server" />
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator5" ValidationGroup="EmployeeSalaryTrans"
                                                ControlToValidate="txtOthersAmount" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="<br />Invalid Input Data." ValidationExpression="^[1-9]\d*(\.\d+)?$"></asp:RegularExpressionValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row_curved" id="div12" runat="server" style="width: 550px;">
                                    <label for="<%=txtRemarks.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Remarks" ID="Label17" Width="120px" /></label>
                                    <span class="indicator">
                                        <asp:TextBox ID="txtRemarks" runat="server" Width="350px" Height="85px" MaxLength="500"
                                            TextMode="MultiLine" Columns="10" Rows="10" CssClass="inputBox_medium"></asp:TextBox>
                                    </span>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <div class="row_curved" style="background-color: #efefef;" id="divButton" runat="server">
                        <label>
                            &nbsp;</label>
                        <div class="field" style="width: 650px;">
                            <span class="indicator">
                                <asp:Button ID="btnSubmit" CssClass="button_normal_submit" Text="Save" ValidationGroup="EmployeeSalaryTrans"
                                    OnClientClick="SubmitOnClientClick(this, 'EmployeeProfile');" runat="server" OnClick="btnSubmit_Click" /></span>
                            &nbsp;&nbsp;<asp:Button runat="server" ID="btnNew" Text="New" OnClick="btnAddNewEmployee_Click"
                                CssClass="button_normal_submit" />
                            &nbsp;&nbsp;<asp:Button runat="server" ID="btnBack" Text="Back to List" OnClick="btnBack_Click"
                                CssClass="button_normal_submit" />
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="row_curved" id="divMessage" runat="server">
                        <label>
                            &nbsp;</label>
                        <div class="field">
                            <span class="indicator">
                                <asp:Label ID="lblMessage" runat="server"></asp:Label>
                            </span>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </fieldset>
            </div>
        </div>
    </div>
</asp:Content>

